<!DOCTYPE html>
<html>
{include file='/common/_meta'}
<body>
	<!-- 头部 -->
{include file='/common/top'}
	<!-- /头部 -->
	
	<div class="main-container container-fluid">
		<div class="page-container">
			            <!-- Page Sidebar -->
                {include file='/common/left'}
            <!-- /Page Sidebar -->
            <!-- Page Content -->
            <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                        <li>
                            <a href="{:url('Index/index')}">系统</a>
                        </li>
                        <li class="active">用户管理</li>
                    </ul>
                </div>
                <!-- /Page Breadcrumb -->

                <!-- Page Body -->
                <div class="page-body">
                    
<button type="button" tooltip="添加用户" class="btn btn-sm btn-azure btn-addon" onClick="javascript:window.location.href = '{:url('link/add')}'"> <i class="fa fa-plus"></i> 添加链接
</button>
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <div class="widget">
            <div class="widget-body">
                <div class="flip-scroll">
                    <table class="table table-bordered table-hover">
                        <thead class="">
                            <tr styl>
                                <th class="text-center">ID</th>
                                <th class="text-center">链接标题</th>
                                <th class="text-center">链接URL</th>
                                <th class="text-center">链接LOGO</th>
                                <th class="text-center">链接描述</th>
                                <th class="text-center">链接类型</th>
                                <th class="text-center">链接状态</th>
                                <th class="text-center">操作</th>
                            </tr>
                        </thead>
                        
                        {volist name="linkslist" id="links"}
                        <tbody>
                                <tr>
                                <td align="center">{$links.links_id}</td>
                                <td align="center">{$links.links_title}</td>
                                <td align="center">{$links.links_url}</td>
                                <td align="center">
                                {if condition="$links['links_logo'] neq ''"}
                                    <img style="height: 30px" src="__upload__/{$links.links_logo}" />
                                {else /}
                                    暂无图片
                                {/if}
                                </td>
                                <td align="+center">{$links.links_description | cut_str=###,30}</td>
                                <td align="center">
                                
                                {if condition="$links['links_type'] neq 0"}
                                    文字
                                {else /}
                                    图片
                                {/if}

                                </td>
                                <td align="center">
                                
                                {if condition="$links['links_status'] neq 0"}
                                    显示
                                {else /}
                                    隐藏
                                {/if}

                                </td>
                                <td align="center">
                                    <a href="{:url('edit',array('links_id'=>$links['links_id']))}" class="btn btn-primary btn-sm shiny">
                                        <i class="fa fa-edit"></i> 编辑
                                    </a>
                                    <a href="#" onClick="warning('确实要删除吗', '{:url('del',array('links_id'=>$links['links_id']))}')" class="btn btn-danger btn-sm shiny">
                                        <i class="fa fa-trash-o"></i> 删除
                                    </a>
                                </td>
                            </tr>
                        </tbody>
                        {/volist}
                    </table>
                </div>
                <div> 
                    {$linkslist->render()}
              	</div>
            </div>
        </div>
    </div>
</div>

                </div>
                <!-- /Page Body -->
            </div>
            <!-- /Page Content -->
		</div>	
	</div>

	    <!--Basic Scripts-->
    {include file='/common/footer'}    


</body></html>